﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.CRM.Bussiness;
using ZX.Web.UI.Controls;
using ZX.BLL;
using ZX.EHR.Library;

namespace ZX.WebApp.Crm.Hodometer
{
    public partial class CommentList : EditUIPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bind();
            }
        }
        protected void bind() {
            BCrmTeachSumup bts = new BCrmTeachSumup();
            rptComment.DataSource= bts.GetCommentDetail(this.GetStringFromQueryString("id","")==""?Guid.Empty:new Guid(this.GetStringFromQueryString("id","")));
            rptComment.DataBind();
        }
        protected string getTeacher(object obj)
        {
            BUser buser = new BUser();
            DatUser user = new DatUser();
            user= buser.GetDatUserByUserId(obj == null ? Guid.Empty :new Guid(obj.ToString()));
            return user == null ? "" : user.UName;
        }
        protected string getDateTime(object obj) { 
           return obj==null?"":Convert.ToDateTime(obj).ToString("yyyy-MM-dd HH:mm");
        }
    }
}